<?php


interface UF
{
    public function getSize(int $p, int $q): int;

    public function isConnected(int $p, int $q): bool;

    public function unionElements(int $p, int $q): void;
}